/*
 * \brief  Log text output session interface
 * \author Norman Feske
 * \date   2006-09-15
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _INCLUDE__LOG_SESSION__LOG_SESSION_H_
#define _INCLUDE__LOG_SESSION__LOG_SESSION_H_

#include <base/capability.h>
#include <base/stdint.h>

namespace Genode {

	class Log_session
	{
		protected:

			enum Opcode { WRITE };

		public:

			static const char *service_name() { return "LOG"; }

			virtual ~Log_session() { }

			/**
			 * Output null-terminated string
			 *
			 * \return  number of written characters
			 */
			virtual size_t write(const char *string) = 0;
	};
}

#endif /* _INCLUDE__LOG_SESSION__LOG_SESSION_H_ */
